package org.msb.accentis.gui.models;

import javax.swing.ComboBoxModel;

import org.msb.accentis.data.pojo.NamedObject;

public class PojoComboBoxModel<T extends NamedObject> extends PojoListModel<T> implements ComboBoxModel<T> {

	public PojoComboBoxModel(String queryName, Class<T> klass) {
		super(queryName, klass);
	}
	
	public PojoComboBoxModel(String queryName, Class<T> klass, boolean includeNull) {
		super(queryName, klass, includeNull);
	}

	private Object selected;
	
	@Override
	public void setSelectedItem(Object anItem) {
		selected = anItem;
	}

	@Override
	public Object getSelectedItem() {
		return selected;
	}
}
